import { createApp } from "vue";
import App from "./App.vue";
import router from "@/router";
import i18n from "@/locales";
import { MotionPlugin } from "@vueuse/motion";
import * as ElementPlusIconsVue from "@element-plus/icons-vue";
import "nprogress/nprogress.css";
import vuex from "@/vuex";
// elementPlus 暗黑模式样式
import "element-plus/theme-chalk/dark/css-vars.css";

const app = createApp(App);
// 全局注册el-icon
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}
app.use(MotionPlugin);
app.use(i18n);
app.use(router).use(vuex).mount("#app");

//按需引入（自动导入）
